import { createStore, compose, applyMiddleware } from 'redux'
import {combineReducers } from 'redux-immutable'
import thunk from 'redux-thunk'

import homeReducer from "./reducer/homeReducer"
import instorageReducer from "./reducer/instorageReducer"
const reducer = combineReducers({
  home:homeReducer,
  ins:instorageReducer
})

const composeEnhancers = (typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) || compose

export default createStore(
  reducer,
  composeEnhancers(applyMiddleware(thunk))
)